package cn.ztydata.teachingsystem.heaven.web.dto.SpecialtyGroup;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * DailyDto
 *
 * @author lyj
 * @since 2015/5/7
 */
public class DailyDto {
    @Min(value = 1, message = "ID不合法")
    private Long id; //ID

    private String date; //创建时间

    @NotNull
    @Length(min = 1, max = 100, message = "说明长度1-100")
    private String remark; //说明

    @NotNull
    private String content; //内容

    private Integer replyCount; //回复量

    @NotNull
    @Range(min = 0, max = 1, message = "日志状态不合法")
    private Integer status;

    @NotNull
    @Length(min = 1, max = 30, message = "标题长度1-30")
    private String title; //标题

    private Long userId; //创建人ID
    private String userName; //创建人姓名
    private String userPhoto; //创建人头像

    @Min(value = 1, message = "群组ID不合法")
    private Long majorId; //群组ID

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public Long getMajorId() {
        return majorId;
    }

    public void setMajorId(Long majorId) {
        this.majorId = majorId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
